Versions:
zcode-switch, also called Z-SWITCH, is a desktop tool built with Tauri 2 for switching between several ZCode accounts with one click while showing the quota of each account. Only the login identity is exchanged; projects, sessions and settings stay shared and untouched. Accounts are saved and switched by taking a snapshot of the credentials and config files and replacing them atomically, and the current login is preserved automatically before each switch so that no account is lost. New accounts are added through an OAuth login inside the tool, with BigModel and z.ai as entry points, without disturbing the active login. The account list shows plan quota and reset time inline, grouped by plan and polled at staggered intervals, and available promotional plans can be claimed from the interface. Accounts can be exported and imported as encrypted .zsb bundles protected by a passphrase using PBKDF2 with 100,000 iterations and AES-256-GCM. The interface is available in Chinese and English, covering the main window, tray, error messages and command line output, and follows the system language on first start. A tray icon, autostart and a command line interface for automation are included. The design is local-first: all data stays on the machine, there is no telemetry or remote storage, and quota queries go directly to the official interface. Account identifiers are restricted to a whitelist of characters to prevent path traversal. The current version is 1.7.1.
Tags: